<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js类型</title>
		<script>
			var w;
			alert(typeof(w));
			w=25;
			alert(w+"的类型是:"+typeof(w));
			w="nihao";
			alert(w+"的类型是:"+typeof(w));
			w=2<1;
			alert(w+"的类型是:"+typeof(w));
			w=new Date();
			alert(w+"的类型是:"+typeof(w));
			w=null;
			alert(w+"的类型是:"+typeof(w));
		</script>
	</head>
	<body>
	</body>
</html>